//
//  QQManager.h
//  6p
//
//  Created by weienjie on 15/3/2.
//  Copyright (c) 2015年 fenfen. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <TencentOpenAPI/QQApiInterface.h>
#import <TencentOpenAPI/TencentOAuth.h>

@interface QQManager : NSObject<QQApiInterfaceDelegate, TencentSessionDelegate>

@property (nonatomic, strong) NSDate *tencent_ExpirationDate;

@property (nonatomic, copy) NSString *tencent_AccessToken;

@property (nonatomic, copy) NSString *tencent_OpenID;

@property (nonatomic, strong) TencentOAuth *tencentAuth;

//单例
+ (QQManager *)sharedInstance;

//检测qq是否安装
+ (BOOL)isQQInstanlled;

//判断腾讯认证有无过期
- (BOOL)isTencentAuthorizeExpired;

//登录qq
- (void)qqLogin;

- (void)qqAutoLogin;
//QQ退出登录
- (void)qqLogout;

//分享到QQ
- (void)shareToQQ:(QQApiObject *)data;

- (void)shareToQzone:(QQApiObject *)data;

@end
